home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / pictetri.src / pictetri / pictetris-src / game.h < prev    next >
C/C++ Source or Header  |  1995-12-19  |  2KB  |  38 lines

  1. /***************************************************************************\
  2. |*                                       *|
  3. |*  game.h:    A version of Tetris to run on Linux SVGAlib console.       *|
  4. |*        This is the module that actually plays the game.       *|
  5. |*                                       *|
  6. |*  Authors:    Mike Taylor (mirk@uk.ac.warwick.cs) &               *|
  7. |*        Arturo Espinosa (arturo@nuclecu.unam.mx)           *|
  8. |*  Started:    Fri May 26 12:26:05 BST 1989 (tetris for terminals)       *|
  9. |*            Dic 1, 1995 (pictetris)                       *|
  10. |*                                       *|
  11. \***************************************************************************/
  12. #include <jlib.h>
  13.  
  14. #define REFRESH_KEY    '\014'    /* Control-L; refreshes screen */
  15.                 /* This is hard-coded in.  It can't */
  16.                 /* be changed by setting TTKEYS, since */
  17.                 /* the peasants couldn't handle all that */
  18.                 /* "setenv TTKEYS `echo | tr`" carp(anag) */
  19.  
  20. #define NO_MOVES 100        /* Number of moves allowed per fall */
  21.  
  22. /*-------------------------------------------------------------------------*/
  23.  
  24. extern char left_key;        /* Move piece left */
  25. extern char right_key;        /* Move piece right */
  26. extern char rotate_key;        /* Rotate piece anticlockwise */
  27. extern char drop_key;        /* Drop piece to bottom of screen */
  28. extern char susp_key;        /* Suspend.  I'm sorry if its confusing */
  29. extern char quit_key;        /* Quit.  I'm sorry if its confusing */
  30. extern char cheat_key;        /* Frogging identical comments :-P */
  31.  
  32. /*-------------------------------------------------------------------------*/
  33.  
  34. extern void clear_board ();
  35. extern void play_game ();
  36.  
  37. /*-------------------------------------------------------------------------*/
  38.